<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     pagizer
 * @subpackage  website
 */

class m_website_actions_block_front_HtmlAction extends f_core_Action
{
	public function execute()
	{
        $contentId = $this->getBlockParameter('contentId');

        $content = '';
        if(!is_null($contentId))
        {
            $tempDocService = m_backoffice_services_TempDocService::getInstance();
            $content = $tempDocService->getDocument($contentId);
        }

        $this->addToModel('content', $content->getContent());
        $this->setView('success');
	}	
}